public class RO_RunAll {

	public static void main(String[] args) {
		/* Makes serializable files. */
		RO_ReadASCII.FILE_PATH = "../track1/validationIdx1.txt";
		RO_ReadASCII.main(args);
		RO_ReadASCII.FILE_PATH = "../track1/testIdx1.txt";
		RO_ReadASCII.main(args);
		RO_ReadASCII.FILE_PATH = "../track1/trainIdx1.txt";
		RO_ReadASCII.main(args);

		/* Sort training USER without reading in the file */
		RO_ReadASCII.handleSorting();
		RO_ConvertUSERtoITEM.USER = RO_ReadASCII.USER;

		/* Convert training USER to training ITEM */
		long time = System.currentTimeMillis();
		RO_ConvertUSERtoITEM.createItemArrays();
		System.out.println(System.currentTimeMillis() - time);

		time = System.currentTimeMillis();
		RO_ConvertUSERtoITEM.writeSerialisedResult();
		System.out.println(System.currentTimeMillis() - time);
	}
}
